import { GETGROUP, ADDRESOURCE, GETGROUPDEPT, UPDATERESOURCENAME } from './api'
import { METHOD, request} from '@/utils/request'
/**
 * 分组配置列表
 */
export async function getGroupList(params) {
  return request(GETGROUP, METHOD.POST, params)
}

/**
 * 分组绑定组织
 * @params 
 */
export async function addResourceGroup(params) {
  return request(ADDRESOURCE, METHOD.POST, params)
}

/**
 *  获取修改别名列表
 * @params  resourceGroupCode 资源分组code/ departmentId 部门id
 */
 export async function getGroupDept(params) {
  return request(GETGROUPDEPT, METHOD.POST, params)
}
/**
 *  修改别名
 * @params  id 页面路由组织id	/ alias 别名
 */
 export async function updateResourceName(params) {
  return request(UPDATERESOURCENAME, METHOD.POST, params)
}